import { get, post } from '@/server/http';
// user/0c34a42d-f0e1-4f13-ad18-c6cdf7ccc060/Videos/page/1
// 我的页面作品
export const getMyVideoCountAPI = (userId) => get(`user/${userId}/Videos/page/1`);
// 关注
export const followAPI = (userId) => get(`user/${userId}/FollowersNum`);
// 粉丝
export const fansAPI = (userId) => get(`user/${userId}/FansNum`);
// 获赞
export const likeAPI = (userId) => get(`user/${userId}/byLikesNum`);
// 喜欢
export const likeNumAPI = (userId) => get(`user/${userId}/LikesNum`);
// 作品数量
export const workNumAPI = (userId) => get(`user/${userId}/VideosNum`);

// 请求动态数据
export const getMyDynamicAPI = (userId) => get(`user/${userId}/Videos/page/1`);

//请求我的喜欢数据
export const getMyLikeAPI = (userId) => get(`user/${userId}/Likes/page/1`);


// 请求我的页面个人用户信息
export const getMyInfoAPI = () => get(`user/persistent/getUserInfo/undefined`);

// 编辑个人信息
export const editMyInfoAPI = (userId, data) => post(`user/${userId}/modifyUserInfo`, data);

// 编辑个人信息/上传头像
export const uploadAvatarAPI = (userId, data) => post(`user/${userId}/uploadAvatar`, data);


// 退出登陆
export const logoutAPI = (userId) => get(`user/${userId}/logout`);


// 请求我的关注数据
export const getMyFollowingsAPI = (userId) => get(`user/${userId}/Followers/page/1/${userId}`);
// 我关注的 用户 关注/取消关注
export const followUserAPI = (userId, followUserId) => get(`user/${userId}/triggerFollow/${followUserId}`);

// 我的粉丝数据
export const getMyFollowersAPI = (userId) => get(`user/${userId}/Fans/page/1/${userId}`);
// 我的粉丝 关注/取消关注
export const followUserFansAPI = (userId, followUserId) => get(`user/${userId}/triggerFollow/${followUserId}`);
